package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.TransformGroupCharacteristic;

/**
 * @author Bright Lee
 */
public final class SetTransformGroupStatement implements SqlSessionStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private TransformGroupCharacteristic transformGroupCharacteristic;

    public SetTransformGroupStatement(int beginIndex,
                                      TransformGroupCharacteristic transformGroupCharacteristic) {
        this.beginIndex = beginIndex;
        this.endIndex = transformGroupCharacteristic.getEndIndex();
        this.transformGroupCharacteristic = transformGroupCharacteristic;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public TransformGroupCharacteristic getTransformGroupCharacteristic() {
        return transformGroupCharacteristic;
    }

}
